<div class=new-article-form>
	<form class=form-std method=post action=<?php echo Epic::getUrl('blog/article/save')?> enctype=application/x-www-form-urlencoded>
		<fieldset>             
			<h2>New Article Form</h2>
			<div>                
				<label for=title>Title<em>*</em></label>         
				<input type=text name=title id=title title=title value="<?php echo $this->getFormData('title'); ?>" />             
			</div>
			<div>
				<label for=category_id>Category</label>                
				<select id=category_id name=category_id>
					<?php foreach($this->getAllActiveCategories() as $category):?>
						<option value=<?php echo $category['category_id']; ?>><?php echo $category['name']; ?></option>
					<?php endforeach;?>
				</select>
			</div>
			<div> 
			   	<label for=content>Content Short<em>*</em></label>         
				<textarea name=content_short id=content_short title=content_short><?php echo $this->getFormData('content_short'); ?></textarea>
			</div>
			<div> 
			   	<label for=content>Content<em>*</em></label>         
				<textarea name=content id=content title=content><?php echo $this->getFormData('content'); ?></textarea>
			</div>
			<div>
				<label>Active</label> 
				<input type=radio id=active_on name=active value=1 <?php if($this->getFormData('active')): ?>checked=checked<?php endif;?>>
				<label for="active_on" class="t"><img title="Enabled" alt="Enabled" src="<?php echo Epic::getImgUrl(); ?>icon/enabled.gif"></label>
				<input type=radio id=active_off name=active value=0 <?php if(!$this->getFormData('active')): ?>checked=checked<?php endif;?>>
				<label for="active_off" class="t"><img title="Disabled" alt="Disabled" src="<?php echo Epic::getImgUrl(); ?>icon/disabled.gif"></label>
			</div>
			<div>					
				<button type=submit class=button title=submit><img src="<?php echo Epic::getImgUrl(); ?>icon/cms.gif" alt=Save />Save</button>
			</div>				
		</fieldset>       
	</form>
</div>

<!-- editor -->
<script src="<?php echo Epic::getJsUrl(); ?>epicEditor/scripts/epiceditor.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[    
epicEditor.init({
	containId: 'content',
	buttons1 : 'bold,italic,underline,strikethrough,superscript,subscript,createLink,unlink,insertimage,justifyleft,justifycenter,justifyright,justifyfull,increasefontsize,decreasefontsize',
	buttons2 : 'backcolor,forecolor,hilitecolor,undo,redo,fontsize,insertorderedlist,insertunorderedlist,indent,outdent,removeformat,delete,manageimage,inserthtml,fontname,horizontalrule',
	width:575,
	height:400
});
//]]>
</script>
<!-- /editor -->